package com.topisv.tms.entity.stock.history;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.topisv.tms.entity.AreaGroup;
import com.topisv.tms.entity.Customers;
import com.topisv.tms.entity.IdEntity;

@Entity
@Table(name = "wms_inv_history")
public class InvHistory extends IdEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String invDate;
	private Integer salesNum;
	private Integer unusedNum;
	private Integer orderNum;
	private Integer lockedNum;
	private Integer virtualNum;
	private Integer transportNum;
	private Integer airNum;
	private Integer inNum;
	private Integer outNum;
	private Integer adjustNum;
	private Customers customer;
	private AreaGroup warehouse;
	private String sku;
	private String skuName;
	
	public String getInvDate() {
		return invDate;
	}
	public void setInvDate(String invDate) {
		this.invDate = invDate;
	}
	public Integer getSalesNum() {
		return salesNum;
	}
	public void setSalesNum(Integer salesNum) {
		this.salesNum = salesNum;
	}
	public Integer getUnusedNum() {
		return unusedNum;
	}
	public void setUnusedNum(Integer unusedNum) {
		this.unusedNum = unusedNum;
	}
	public Integer getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	public Integer getLockedNum() {
		return lockedNum;
	}
	public void setLockedNum(Integer lockedNum) {
		this.lockedNum = lockedNum;
	}
	public Integer getVirtualNum() {
		return virtualNum;
	}
	public void setVirtualNum(Integer virtualNum) {
		this.virtualNum = virtualNum;
	}
	public Integer getTransportNum() {
		return transportNum;
	}
	public void setTransportNum(Integer transportNum) {
		this.transportNum = transportNum;
	}
	public Integer getAirNum() {
		return airNum;
	}
	public void setAirNum(Integer airNum) {
		this.airNum = airNum;
	}
	public Integer getInNum() {
		return inNum;
	}
	public void setInNum(Integer inNum) {
		this.inNum = inNum;
	}
	public Integer getOutNum() {
		return outNum;
	}
	public void setOutNum(Integer outNum) {
		this.outNum = outNum;
	}
	
	public Integer getAdjustNum() {
		return adjustNum;
	}
	public void setAdjustNum(Integer adjustNum) {
		this.adjustNum = adjustNum;
	}
	
	@ManyToOne
	@JoinColumn(name="customer_id")
	public Customers getCustomer() {
		return customer;
	}

	public void setCustomer(Customers customer) {
		this.customer = customer;
	}
	
	@ManyToOne
	@JoinColumn(name="warehouse_id")
	public AreaGroup getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(AreaGroup warehouse) {
		this.warehouse = warehouse;
	}
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	public String getSkuName() {
		return skuName;
	}
	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}
}
